import QtQuick
import QtQuick.Controls
Item {
    id: pressedParameterWindow
    width: 1900
    height: 920

    Component.onCompleted: {
        // Cpp_PLC.currentPageNumber = 3
        Cpp_PLC.enter_Pressed_Axis_Window();
    }

    property real rectangleCount: 7
    property real firstRectWidth: 230
    property real remainingWidth : width-firstRectWidth
    property real otherRectWidth: remainingWidth /(rectangleCount-1)
    property real labelFontSize: 30

    NumberKeyboard{
        id: pressedAxisKeyboard
        isDirectOverwrite: false // 关闭直接覆盖
    }

    Rectangle{
        anchors.fill: parent
        radius: 5
        // //border.width: 1
        // border.color: "black"
        color: "#87CEEB"
    }

    // 水平排列所有矩形
    Row {
        id: rowLayout
        width: parent.width
        height: parent.height
        // spacing: spacing  // 应用间距

        // 第一个矩形（固定宽度）
        Rectangle {
            id: paramaterNameList
            width: firstRectWidth
            height: parent.height
            color: "transparent"
            // border.color: "#555"
            //border.width: 1
            radius: 5

            Column{
                anchors.top: parent.top
                anchors.topMargin: 50
                anchors.horizontalCenter: parent.horizontalCenter
                spacing: 5

                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("每转脉冲数");}
                }
                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("减速比");}
                }
                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("每转位移量");}
                }
                // Rectangle{
                //     width: 220;height: 50;color: "transparent";
                //     Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                //         text: qsTr("零点位置");}
                // }
                // Rectangle{
                //     width: 220;height: 50;color: "transparent";
                //     Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                //         text: qsTr("零点补偿");}
                // }
                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("加速时间");}
                }
                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("减速时间");}
                }
                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("正极限");}
                }
                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("负极限");}
                }
                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("手动低速");}
                }
                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("手动高速");}
                }
                Rectangle{
                    width: 220;height: 50;color: "transparent";
                    Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                        text: qsTr("自动速度");}
                }
                // Rectangle{
                //     width: 220;height: 50;color: "transparent";
                //     Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                //         text: qsTr("实时速度");}
                // }

            }

        }

        // 第二个矩形
        Rectangle {
            width: otherRectWidth
            height: parent.height
            color: "transparent"
            // border.color: "#555"
            //border.width: 1
            radius: 5

            Rectangle{
                width: 160;height: 50;color: "transparent";
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                    text: qsTr("前上刀1辅工");}
            }

            Column{
                anchors.top: parent.top
                anchors.topMargin: 50
                anchors.horizontalCenter: parent.horizontalCenter
                spacing: 5

                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_A_E_PPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4200,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_A_E_RR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4204,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_A_E_DPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4208,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth: 220
                //     inputHeight: 50
                //     keyboard: pressedAxisKeyboard
                //     text: Cpp_PLC.FU_knife_1_A_E_ZP
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4212,value);
                //     }
                // }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth: 220
                //     inputHeight: 50
                //     keyboard: pressedAxisKeyboard
                //     text: Cpp_PLC.FU_knife_1_A_E_ZOC
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4216,value);
                //     }
                // }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_A_E_T_Acc
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4220,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_A_E_T_Dec
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4224,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_A_E_PL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4228,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_A_E_NL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4232,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_A_E_MLS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4252,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_A_E_MHS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4256,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_1_A_E_AS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4260,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth: 220
                //     inputHeight: 50
                //     keyboard: pressedAxisKeyboard
                //     text: Cpp_PLC.FU_knife_1_A_E_RTS
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4264,value);
                //     }
                // }
            }
        }
        // 第三个矩形
        Rectangle {
            width: otherRectWidth
            height: parent.height
            color: "transparent"
            // border.color: "#555"
            //border.width: 1
            radius: 5

            Rectangle{
                width: 160;height: 50;color: "transparent";
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                    text: qsTr("前上刀2辅工");}
            }

            Column{
                anchors.top: parent.top
                anchors.topMargin: 50
                anchors.horizontalCenter: parent.horizontalCenter
                spacing: 5

                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_A_E_PPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4300,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_A_E_RR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4304,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_A_E_DPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4308,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth: 220
                //     inputHeight: 50
                //     keyboard: pressedAxisKeyboard
                //     text: Cpp_PLC.FU_knife_2_A_E_ZP
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4312,value);
                //     }
                // }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth: 220
                //     inputHeight: 50
                //     keyboard: pressedAxisKeyboard
                //     text: Cpp_PLC.FU_knife_2_A_E_ZOC
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4316,value);
                //     }
                // }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_A_E_T_Acc
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4320,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_A_E_T_Dec
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4324,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_A_E_PL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4328,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_A_E_NL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4332,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_A_E_MLS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4352,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_A_E_MHS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4356,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.FU_knife_2_A_E_AS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4360,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth: 220
                //     inputHeight: 50
                //     keyboard: pressedAxisKeyboard
                //     text: Cpp_PLC.FU_knife_2_A_E_RTS
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4364,value);
                //     }
                // }
            }
        }
        // 第四个矩形
        Rectangle {
            width: otherRectWidth
            height: parent.height
            color: "transparent"
            // border.color: "#555"
            //border.width: 1
            radius: 5

            Rectangle{
                width: 160;height: 50;color: "transparent";
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                    text: qsTr("后上刀1辅工");}
            }

            Column{
                anchors.top: parent.top
                anchors.topMargin: 50
                anchors.horizontalCenter: parent.horizontalCenter
                spacing: 5

                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_A_E_PPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4600,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_A_E_RR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4604,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_A_E_DPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4608,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth: 220
                //     inputHeight: 50
                //     keyboard: pressedAxisKeyboard
                //     text: Cpp_PLC.BU_knife_1_A_E_ZP
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4612,value);
                //     }
                // }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth: 220
                //     inputHeight: 50
                //     keyboard: pressedAxisKeyboard
                //     text: Cpp_PLC.BU_knife_1_A_E_ZOC
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4616,value);
                //     }
                // }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_A_E_T_Acc
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4620,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_A_E_T_Dec
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4624,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_A_E_PL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4628,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_A_E_NL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4632,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_A_E_MLS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4652,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_A_E_MHS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4656,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_1_A_E_AS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4660,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth: 220
                //     inputHeight: 50
                //     keyboard: pressedAxisKeyboard
                //     text: Cpp_PLC.BU_knife_1_A_E_RTS
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4664,value);
                //     }
                // }
            }
        }
        // 第五个矩形
        Rectangle {
            width: otherRectWidth
            height: parent.height
            color: "transparent"
            // border.color: "#555"
            //border.width: 1
            radius: 5

            Rectangle{
                width: 160;height: 50;color: "transparent";
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                    text: qsTr("后上刀2辅工");}
            }

            Column{
                anchors.top: parent.top
                anchors.topMargin: 50
                anchors.horizontalCenter: parent.horizontalCenter
                spacing: 5

                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_A_E_PPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4700,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_A_E_RR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4704,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_A_E_DPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4708,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth: 220
                //     inputHeight: 50
                //     keyboard: pressedAxisKeyboard
                //     text: Cpp_PLC.BU_knife_2_A_E_ZP
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4712,value);
                //     }
                // }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth: 220
                //     inputHeight: 50
                //     keyboard: pressedAxisKeyboard
                //     text: Cpp_PLC.BU_knife_2_A_E_ZOC
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4716,value);
                //     }
                // }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_A_E_T_Acc
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4720,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_A_E_T_Dec
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4724,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_A_E_PL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4728,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_A_E_NL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4732,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_A_E_MLS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4752,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_A_E_MHS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4756,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.BU_knife_2_A_E_AS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(4760,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth: 220
                //     inputHeight: 50
                //     keyboard: pressedAxisKeyboard
                //     text: Cpp_PLC.BU_knife_2_A_E_RTS
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(4764,value);
                //     }
                // }
            }
        }
        // 第六个矩形
        Rectangle {
            width: otherRectWidth
            height: parent.height
            color: "transparent"
            // border.color: "#555"
            //border.width: 1
            radius: 5

            Rectangle{
                width: 160;height: 50;color: "transparent";
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                    text: qsTr("工 进 1");}
            }

            Column{
                anchors.top: parent.top
                anchors.topMargin: 50
                anchors.horizontalCenter: parent.horizontalCenter
                spacing: 5

                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_1_PPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5200,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_1_RR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5204,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_1_DPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5208,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth: 220
                //     inputHeight: 50
                //     keyboard: pressedAxisKeyboard
                //     text: Cpp_PLC.Entry_1_ZP
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(5212,value);
                //     }
                // }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth: 220
                //     inputHeight: 50
                //     keyboard: pressedAxisKeyboard
                //     text: Cpp_PLC.Entry_1_ZOC
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(5216,value);
                //     }
                // }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_1_T_Acc
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5220,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_1_T_Dec
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5224,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_1_PL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5228,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_1_NL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5232,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_1_MLS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5252,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_1_MHS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5256,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_1_AS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5260,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth: 220
                //     inputHeight: 50
                //     keyboard: pressedAxisKeyboard
                //     text: Cpp_PLC.Entry_1_RTS
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(5264,value);
                //     }
                // }
            }
        }
        Rectangle {
            width: otherRectWidth
            height: parent.height
            color: "transparent"
            // border.color: "#555"
            //border.width: 1
            radius: 5

            Rectangle{
                width: 160;height: 50;color: "transparent";
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.top: parent.top
                Text{anchors.centerIn: parent;font.pixelSize: labelFontSize;color: "black";
                    text: qsTr("工 进 2");}
            }

            Column{
                anchors.top: parent.top
                anchors.topMargin: 50
                anchors.horizontalCenter: parent.horizontalCenter
                spacing: 5

                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_2_PPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5300,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_2_RR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5304,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_2_DPR
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5308,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth: 220
                //     inputHeight: 50
                //     keyboard: pressedAxisKeyboard
                //     text: Cpp_PLC.Entry_2_ZP
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(5312,value);
                //     }
                // }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth: 220
                //     inputHeight: 50
                //     keyboard: pressedAxisKeyboard
                //     text: Cpp_PLC.Entry_2_ZOC
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(5316,value);
                //     }
                // }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_2_T_Acc
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5320,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_2_T_Dec
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5324,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_2_PL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5328,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_2_NL
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5332,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_2_MLS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5352,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_2_MHS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5356,value);
                    }
                }
                NumberInput{        // 前上刀1辅工_目标位置
                    inputWidth: 220
                    inputHeight: 50
                    keyboard: pressedAxisKeyboard
                    text: Cpp_PLC.Entry_2_AS
                    onEditingFinished: function(value){
                        Cpp_PLC.write_into_tcp_Hold32(5360,value);
                    }
                }
                // NumberInput{        // 前上刀1辅工_目标位置
                //     inputWidth: 220
                //     inputHeight: 50
                //     keyboard: pressedAxisKeyboard
                //     text: Cpp_PLC.Entry_2_RTS
                //     onEditingFinished: function(value){
                //         Cpp_PLC.write_into_tcp_Hold32(5364,value);
                //     }
                // }
            }
        }

    }


}
